﻿using Loki.UI.Wpf;

namespace Luna.UI.CRM.Wpf
{
    /// <summary>
    /// Logique d'interaction pour AccountEditView.xaml
    /// </summary>
    public partial class AccountEditView : ViewControl<AccountEditViewModel>
    {
        public AccountEditView()
        {
            InitializeComponent();
            DataContextChanged += AccountListView_DataContextChanged;
        }

        private void AccountListView_DataContextChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e)
        {
            AddValueBinding(x => x.Name, TXT_Name);
            AddValueBinding(x => x.Address, TXT_Address);
            AddValueBinding(x => x.City, TXT_City);
            AddValueBinding(x => x.Country, TXT_Country);
            AddValueBinding(x => x.Mail, TXT_Mail);
            AddValueBinding(x => x.PhoneNumber, TXT_Phone);
            AddValueBinding(x => x.Url, TXT_Url);
            AddValueBinding(x => x.ZipCode, TXT_ZipCode);
        }
    }
}